<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>氧舱治疗-frame</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <style>
        [v-cloak] {
            display: none;
        }

        .expend-cabin-wrapper>span {
            display: inline-block;
            font-size: 14px;
        }

        .aui-btn-info.add-cabin-info-btn {
            position: fixed;
            right: 1.2rem;
            top: 1rem;
            z-index: 100;
        }

        .cabin-info {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            height: 100%;
            width: 100%;
            background-color: rgba(255, 255, 255, 1);
            padding-top: 170px;
        }

        .add-cabin-info {
            width: 100%;
        }

        .aui-btn-sm {
            width: 300px;
            margin: 20px auto;
        }

        .aui-list-item.aui-list-item-middle {
            width: 90%;
            margin: 0 auto;
            border-radius: 10px;
            -moz-box-shadow: 1px 4px 20px #C2C2C2;
            -webkit-box-shadow: 1px 4px 20px #C2C2C2;
            box-shadow: 1px 4px 20px #C2C2C2;
            margin-top: 20px;
        }

        /* .aui-list-item h3 {
            text-align: center;
            padding-top: 0.8rem;
            
        } */

        .aui-list-item-text {
            margin-top: 5px;
            display: -webkit-flex;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .new-list-item span {
            color: #84c1ff;
            font-size: 14px;
            flex: 1;
            display: block;
            height: 23px;
            line-height: 23px;
        }

        .aui-btn-sm {
            width: 300px;
            margin: 20px auto;
        }

        .aui-card-list-content {
            background-color: #f5f5f5;
            outline: none;
            border: none;
            border: 0;
        }

        /* 治疗次数 */
        .text-header {
            width: 95%;
            font-size: 30px;
            font-weight: bold;
            padding: 1.6rem 1rem;
        }

        /* 排仓信息 */
        .text-body {
            width: 95%;
            margin: 0 auto;
            display: -webkit-flex;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .text-body>div:nth-child(1) {
            width: 80%;
            padding-left: 30px;
        }

        .text-body>div:nth-child(2) {
            width: 20%;
            color: skyblue;
        }

        .text-body>div>p:nth-child(1) {
            color: #000;
        }

        .text-body>div>p:nth-child(2) {
            font-size: 17px;
            color: #777;
        }

        .aui-list-img-sm {
            width: 3.6rem;
            height: 4.2rem;
            border-radius: 50%;
        }

        .aui-list.aui-media-list::before {
            display: none !important;
        }

        .aui-form-list {
            position: relative;
        }

        .aui-list-item-form {
            position: absolute;
            width: 60%;
            left: 50%;
            transform: translateX(-50%);
        }

        .aui-list-cender {
            width: 54%;
        }

        .aui-list-cender span {
            padding-right: 30%;
            width: 100%
        }

        /* 新的列表样式 */
        .list-header {
            display: flex;
            justify-content: space-around;
            padding: 0.6rem 0 0.2rem;
            align-items: center;
        }

        .list-header-right {
            color: #999;
            font-size: 0.7rem;
        }

        .list-header-center {
            color: #999;
            font-size: 0.7rem;
        }

        .list-content {
            display: flex;
            justify-content: space-between;
        }

        .list-content-left {
            width: 20%;
        }

        .list-content-right {
            flex: 1;
            text-align: left;
            padding-left: 0.8rem;
            color: #333;
        }

        .btn-border {
            border: 1px solid #4169E1;
            padding: 0.1rem 0.2rem;
            border-radius: 0.2rem;
            margin-top: 0.2rem;
            font-size: 0.6rem;
        }

        .list-content-time {
            font-size: 0.6rem;
        }

        .list-content-time span {
            margin-left: 0.4rem;
            color: #555;
        }
    </style>
</head>

<body>
    <main id="app">
        <div class="text-header">
            舱次信息
        </div>
        <div class="aui-card-list">
            <div class="aui-card-list-content">
                <ul class="aui-list aui-media-list" id="information">
                    <!-- <li class="aui-list-item aui-list-item-middle">
                        <div class="list-header">
                            <h3>name </h3>
                            <div class="list-header-right">治疗压力: <b>1.2</b></div>
                        </div>
                        <div class="list-content">
                            <div class="list-content-left aui-list-item-media">
                                <img src="../image/avatar2.png" class="aui-img-round aui-list-img-xs">
                            </div>
                            <div class="list-content-right">
                                <div class="aui-list-item-title aui-font-size-14">舱次编号：1</div>
                                <div>
                                    <div class="list-content-time">
                                        <span>升压时间：23:00</span>
                                        <span>减压时间：23:00</span>
                                        <span class="btn-border" style="color:#4169E1">操舱执行</span>
                                    </div>
                                    <div class="list-content-time">
                                        <span>稳压时间：23:00</span>
                                        <span>出舱时间：23:00</span>
                                        <span class="btn-border" style="color:#4169E1">医师核查</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li> -->
                </ul>
            </div>
        </div>

        <div class="aui-btn aui-btn-info add-cabin-info-btn" onclick="addCabinInfo()"><span
                class="aui-iconfont aui-icon-plus"></span>添加舱次</div>
        <!-- <div class="aui-btn aui-btn-info add-cabin-info-btn" style="margin-right: 200px;" onclick="addAutograph()"><span
                class="aui-iconfont aui-icon-edit"></span>宣教签字</div> -->

        <!-- 添加舱次 -->
        <div class="cabin-info" id="cabinStatus" style="display: none;">
            <div class="aui-content aui-margin-b-15">
                <ul class="aui-list aui-form-list">

                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                舱次名称
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="舱次名称" id="cf_name">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                所属舱室
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="所属舱室" id="cf_ci_id">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                升压时间
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" style="padding-left:30%" id="cf_compression" placeholder="升压时间">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                稳压时间
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" style="padding-left:30%" id="cf_stable_Pressure" placeholder="稳压时间">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                减压时间
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" style="padding-left:30%" id="cf_decompression" placeholder="减压时间">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                出舱时间
                            </div>
                            <div class="aui-list-item-input">
                                <input type="text" style="padding-left:30%" id="cf_out_cabin" placeholder="出舱时间">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                治疗压力
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="治疗压力" id="cf_pressure">
                            </div>
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                舱次时间
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="舱次时间" id="cf_time">
                            </div>
                            <!-- <div class="aui-list-item-input" id="irTime" onclick="getDateTime()">
                                {{getDateTime}}
                            </div> -->
                        </div>
                    </li>
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                开始时间
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="开始时间" id="cf_start_time">
                            </div>
                        </div>
                    </li>
                </ul>
                <p class="add-cabin-info">
                <div class="aui-bar aui-bar-btn aui-bar-btn-round aui-btn-sm" style="width:45%;">
                    <div class="aui-bar-btn-item aui-active" onclick="Cancel()">取消</div>
                    <div class="aui-bar-btn-item" onclick="insertHoCabinFrequency()">添加</div>
                </div>
                </p>
            </div>
        </div>
        <!-- 宣教签字 -->
        <div class="cabin-info" id="autographStatus" style="display: none;">
            <div class="aui-content aui-margin-b-15">
                <ul class="aui-list aui-form-list" style="width: 100%;" id="autograph_information">
                    <li class="aui-list-item aui-list-item-form">
                        <div class="aui-list-item-inner">
                            <div class="aui-list-item-label">
                                舱次名称
                            </div>
                            <div class="aui-list-item-input">
                                <input style="padding-left:30%" type="text" placeholder="舱次名称" id="cf_name">
                            </div>
                        </div>
                    </li>

                </ul>
                <p class="add-cabin-info">
                <div class="aui-bar aui-bar-btn aui-bar-btn-round aui-btn-sm" style="width:45%;">
                    <div class="aui-bar-btn-item aui-active" onclick="autographCancel()">取消</div>
                </div>
                </p>
            </div>
        </div>
    </main>
</body>

</html>

<script src="../script/api.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/vue.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/ToConfigure.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-toast.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-dialog.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-tab.js" charset="utf-8" type="text/javascript"></script>
<!-- <script src="../script/aui.picker.js"></script> -->
<script type="text/javascript">
    var vm = null;
    apiready = function () {
        api.addEventListener({
            name: 'canbin'
        }, function (ret, err) {
            if (ret.value.state == 'no') {
                reloadCanbin();
            }
        });

        vm = new Vue({
            el: '#app',
            data: {
                //添加舱次窗口显示隐藏
                cabinStatus: false,
                //宣教签字窗口显示隐藏
                autographStatus: false,
                shengyaDateTime: '选择时间',
                wenyaDateTime: '选择时间',
                chucangDateTime: '选择时间',
                jianyaDateTime: '选择时间',
                highDateTime: '选择时间',
                Cabinlist: [], //舱次信息
                CabinState: [], //舱次提醒核查状态
                CabinInformation: [], //舱室信息
                Url_IP: ""
            },
            created() {
                api.showProgress({
                    title: '努力加载中...',
                    text: '',
                    modal: true
                });
                //查询舱次信息
                getHoCabinFrequency();
                //查询当日操舱记录单
                jil();
                api.hideProgress();
            },
            methods: {
                enterPersonPage: function (item) {
                    api.openWin({
                        name: 'personInfo',
                        url: './person-info.html',
                        pageParam: {
                            name: 'personInfo'
                        }
                    });
                },
                enterUsersFrame: function (F_id) {
                    api.openWin({
                        name: 'patient',
                        url: './patient.html',
                        pageParam: {
                            cfId: F_id
                        }
                    });
                },
                editCabinEvent: function (F_id, F_Cabin_ID) {
                    api.openWin({
                        name: 'patient-info-header',
                        url: './patient-info-header.html',
                        pageParam: {
                            F_id: F_id,
                            F_Cabin_ID: F_Cabin_ID
                        }
                    });
                },
                DoctorCheckFrame: function (F_id) {
                    api.openWin({
                        name: 'DoctorCheck-header',
                        url: './DoctorCheck-header.html',
                        pageParam: {
                            F_id: F_id
                        }
                    });
                },
                Cabin_Record_Frame: function (F_id) {
                    api.openWin({
                        name: 'Cabin_Record-header',
                        url: './Cabin_Record-header.html',
                        pageParam: {
                            F_id: F_id
                        }
                    });
                },
            }
        });
        var header = $api.byId('header'); // 获取头部
        $api.fixStatusBar(header); // 处理ios兼容
    }



    // 升压时间
    function getDateTime() {
        api.openPicker({
            type: 'time',
            title: '选择升压时间'
        }, function (ret, err) {
            if (ret) {
                vm.shengyaDateTime = '' + ret.hour +
                    ':' + ret.minute
            }
        });
    }

    // 稳压时间
    function getWenyaime() {
        api.openPicker({
            type: 'time',
            date: '08:30',
            title: '选择升压时间'
        }, function (ret, err) {
            if (ret) {
                vm.wenyaDateTime = '' + ret.hour +
                    ':' + ret.minute
            }
        });
    }

    // 减压时间
    function getJianyaTime() {
        api.openPicker({
            type: 'time',
            date: '08:30',
            title: '选择升压时间'
        }, function (ret, err) {
            if (ret) {
                vm.jianyaDateTime = '' + ret.hour +
                    ':' + ret.minute
            }
        });
    }

    // 出舱时间
    function getChucangTime() {
        api.openPicker({
            type: 'time',
            date: '08:30',
            title: '选择升压时间'
        }, function (ret, err) {
            if (ret) {
                vm.chucangDateTime = '' + ret.hour +
                    ':' + ret.minute
            }
        });
    }
    /**
      * 获取当前时间
      */
    function getNowFormat() {

        var date = new Date();

        var seperator1 = "-";

        var seperator2 = ":";

        var month = date.getMonth() + 1;

        var strDate = date.getDate();

        if (month >= 1 && month <= 9) {

            month = "0" + month;

        }

        if (strDate >= 0 && strDate <= 9) {

            strDate = "0" + strDate;

        }

        var currentdate = date.getFullYear() + "-" + month + "-" + strDate

        return currentdate;


    }

    /**
      * 获取当前时间+1
      */
    function getNowFormating() {

        var date = new Date();

        var seperator1 = "-";

        var seperator2 = ":";

        var month = date.getMonth() + 1;

        var strDate = date.getDate() + 1;

        if (month >= 1 && month <= 9) {

            month = "0" + month;

        }

        if (strDate >= 0 && strDate <= 9) {

            strDate = "0" + strDate;

        }

        var currentdate1 = date.getFullYear() + "-" + month + "-" + strDate

        return currentdate1;

    }


    /**
     * 查询舱次信息
     * @param currPage 当前页
     */
    function getHoCabinFrequency() {
        //定义toast提示框
        var toast = new auiToast();
        //清空页面内容
        $("#information").html("");
        var Url_IP = ToConfigure_IP("Gorgeous");
        var jsParms = new Object();
        jsParms.currPage = 1;
        /**
        * 获取当前时间
        */
        jsParms.cfTime = getNowFormat();
        /**
         * 获取后天时间
         */
        // jsParms.endTime = getNowFormating();
         /**
        * 获取当前时间
        */
        jsParms.cfCiId = "二号舱";
        /**
         * 请求控制器
         */
        $.ajax({
            url: Url_IP + '/disinfectioninspection/hocabinfrequency/getHoCabinFrequency',
            type: 'post',
            async: false,
            contentType: "application/json",
            dataType: "json",
            data: JSON.stringify(jsParms),
            success: function (result) {
                /**
                 *  拼接展示信息
                 */
                var information = "";
                /**
                 * 验证返回信息是否为空
                 */
                if (result.success == true) {
                    /**
                     *  循环object
                     */
                    $.each(result.data.list, function (i, o) {
                        information += "<li class=\"aui-list-item aui-list-item-middle\">";
                        information += "<div class=\"list-header\">";
                        if (o.cfCompression <= "12:00") {
                            information += "<h3 style='color: wi'>" + o.cfName + "(上午)</h3>";
                        } else {
                            information += "<h3 style='color: red'>" + o.cfName + "(下午)</h3>";
                        }
                        information += "<div class=\"list-header-center\">舱室日期: <b>" + o.cfTime + "</b></div>";
                        information += "<div class=\"list-header-right\">治疗压力: <b>" + o.cfPressure + "</b></div>";
                        information += "</div>";
                        information += "<div class=\"list-content\">";
                        information += "<div class=\"list-content-left aui-list-item-media\" @click=\"enterUsersFrame(" + o.cfId + ")\">";
                        information += "<img src=\"../image/avatar2.png\" class=\"aui-img-round aui-list-img-xs\">";
                        information += "</div>";
                        information += "<div class=\"list-content-right\">";
                        information += "<div>";
                        information += "<div class=\"list-content-time\">";
                        information += "<span>升压时间：" + o.cfCompression + "</span>";
                        information += "<span>减压时间：" + o.cfDecompression + "</span>";
                        information += "</div>";
                        information += "<div class=\"list-content-time\">";
                        information += "<span>稳压时间：" + o.cfStablePressure + "</span>";
                        information += "<span>出舱时间：" + o.cfOutCabin + "</span>";
                        information += "<div class=\"list-content-time\">";
                        information += "<span class=\"btn-border\" style=\"color:#4169E1;height:50px;line-height:45px;\" onclick=\"editCabinEvent('" + o.cfId + "','" + o.cfName + "')\">操舱执行</span>";
                        information += "<span class=\"btn-border\" style=\"color:#4169E1;height:50px;line-height:45px;margin-left:90px;\" onclick=\"enterMissionPatient('" + o.cfId + "')\">宣教签字</span>";
                        information += "</div>";
                        information += "</div></div></div></div></li>";

                    })
                    /**
                     * 页面进行赋值
                     */
                    $("#information").html(information);
                } else {
                    /**
                     *  弹窗提示 暂无相关信息
                     */
                    toast.fail({
                        title: "加载失败",
                        duration: 2000
                    });
                }
            },
            error: function (result) {
                /**
                 *  提示错误信息
                 */
                toast.fail({
                    title: "加载失败",
                    duration: 2000
                });
            }
        });
    }





    function closewin() {
        api.closeWin({
            name: 'enterCabinPage'
        });
    }

    //添加舱次窗口显示隐藏
    function addCabinInfo() {
        $("#cabinStatus").show();
    }
    //取消按钮
    function Cancel() {
        $("#cabinStatus").hide();
    }


    /**
   * 添加舱次信息
   */
    function insertHoCabinFrequency() {
        //定义toast提示框
        var toast = new auiToast();
        /**
         * 获取参数
         */
        var jsonStr = GetParameters();
        //获取所属医院IP地址
        var Url_IP = ToConfigure_IP("Gorgeous");

        /**
         * 验证参数是否为空
         */
        if (jsonStr) {
            /**
             * 请求控制器
             */
            $.ajax({
                url: Url_IP + '/disinfectioninspection/hocabinfrequency/insertHoCabinFrequency',
                type: 'post',
                async: false,
                contentType: "application/json",
                dataType: "json",
                data: jsonStr,
                success: function (result) {
                    /**
                     * 验证是否成功
                     */
                    if (result.success == true) {

                        toast.success({
                            title: "提交成功",
                            duration: 2000
                        });

                        api.openFrame({ // 打开Frame
                            name: 'cabin',
                            url: 'yangcangzhiliao-frame.html',
                        });

                    } else {
                        /**
                         *  提示错误信息
                         */
                        toast.fail({
                            title: "提交失败",
                            duration: 2000
                        });
                    }
                },
                error: function (result) {
                    /**
                     *  提示错误信息
                     */
                    toast.fail({
                        title: "提交失败",
                        duration: 2000
                    });
                }
            });
        }
    }
    //获取添加舱室信息
    function GetParameters() {
        var JsParms = new Object();
        //舱次名称
        JsParms.cfName = $("#cf_name").val();
        //舱室
        JsParms.cfCiId = $("#cf_ci_id").val();
        //加压时间
        JsParms.cfCompression = $("#cf_compression").val();
        //减压时间
        JsParms.cfDecompression = $("#cf_decompression").val();
        //稳压时间
        JsParms.cfStablePressure = $("#cf_stable_Pressure").val();
        //出舱时间
        JsParms.cfOutCabin = $("#cf_out_cabin").val();
        //压力
        JsParms.cfPressure = $("#cf_pressure").val();
        //舱次时间
        JsParms.cfTime = $("#cf_time").val();
        //开始时间
        JsParms.cfStartTime = $("#cf_start_time").val();

        return JSON.stringify(JsParms);
    }


    //宣教签字窗口显示隐藏
    function addAutograph() {
        $("#autographStatus").show();
    }
    function autographCancel() {
        $("#autographStatus").hide();
    }
    /**
    * 查询操舱记录单
    */
    function jil() {
        //定义toast提示框
        var toast = new auiToast();
        //清空页面信息
        $("#autograph_information").html("");
        //获取当前IP
        var Url_IP = ToConfigure_IP("Gorgeous");
        var myDate = new Date;
        var year = myDate.getFullYear(); //获取当前年
        var mon = myDate.getMonth() + 1; //获取当前月
        var date = myDate.getDate(); //获取当前日

        var jsParms = new Object();
        /**
         * 赋值舱次Id
         */
        //  var cfId = api.pageParam.F_id;
        // jsParms.cfpCfId = cfId;
        /**
         * 默认自动获取当天
         */
        jsParms.corOperTime = year + '-' + mon + '-' + date;
        console.log(year + '-' + mon + '-' + date);
        /**
         * 请求控制器
         */
        $.ajax({
            url: Url_IP + '/businessmanagement/hocabinoperationrecord/getHoCabinOperationRecord',
            type: 'post',
            async: false,
            contentType: "application/json",
            dataType: "json",
            data: JSON.stringify(jsParms),
            success: function (result) {
                /**
                 *  拼接展示信息
                 */
                var autograph_information = "";
                /**
                 * 初始化拼接信息
                 */
                autograph_information += " <li class=\"aui-list-item aui-list-item-form\"style=\"width: 100%;\">";
                autograph_information += " <div class=\"aui-list-item-inner\">";
                autograph_information += " <div class=\"aui-list-item-label\">";
                autograph_information += "舱室";//舱室名称
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "升压";//升压时间
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "稳压";//稳压时间
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "减压";//减压时间
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "出舱";//出舱时间
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "压力";//治疗压力
                autograph_information += "</div>";
                autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                autograph_information += "操作";//操作
                autograph_information += "</div>";
                autograph_information += " </div>";
                autograph_information += "</li>";
                /**
                 * 验证返回信息是否为空
                 */
                if (result.success == true) {
                    console.log(result.data.list.length);
                    if (result.data.list.length > 0) {
                        /**
                         *  循环object
                         */
                        $.each(result.data.list, function (i, o) {

                            autograph_information += " <li class=\"aui-list-item aui-list-item-form\"style=\"width: 100%;\">";
                            autograph_information += " <div class=\"aui-list-item-inner\">";
                            autograph_information += " <div class=\"aui-list-item-label\">";
                            autograph_information += o.corCiId;//舱室名称
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += o.corCompressionTime;//升压时间
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += o.corStableTime;//稳压时间
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += o.corReduceTime;//减压时间
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += o.corOutCabinTime;//出舱时间
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += o.corPressure;//治疗压力
                            autograph_information += "</div>";
                            autograph_information += " <div class=\"aui-list-item-label\" style=\"\">";
                            autograph_information += "<button class=\"aui-bar aui-bar-btn aui-bar-btn-round aui-btn-sm\" style=\"background-color:;\" onclick=\"enterMissionPatient(" + o.corId + ")\">签字</button>";//操作
                            autograph_information += "</div>";
                            autograph_information += " </div>";
                            autograph_information += "</li>";

                        })
                        $("#autograph_information").html(autograph_information);
                        api.hideProgress();
                        toast.success({
                            title: "加载成功",
                            duration: 1000
                        });
                    } else {
                        api.hideProgress();

                        /**
                         *  弹窗提示 当日并未提舱
                         */
                        // toast.fail({
                        //     title: "当日未提舱，请提舱后进行操作！",
                        //     duration: 2000
                        // });
                    }
                    /**
                     * 页面进行赋值
                     */

                } else {
                    api.hideProgress();
                    /**
                     *  弹窗提示 暂无相关信息
                     */
                    toast.fail({
                        title: "加载失败",
                        duration: 2000
                    });
                }
            },
            error: function (result) {
                api.hideProgress();
                /**
                 *  提示错误信息
                 */
                toast.fail({
                    title: "加载失败",
                    duration: 2000
                });
            }
        });
    }
    /**
     * 跳转签名页面
     */
    function enterMissionPatient(oa_cor_id) {
        if (oa_cor_id > 0 && oa_cor_id != null) {
            api.openWin({
                name: 'missionPatient',
                url: './missionPatient.html',
                pageParam: {
                    F_HatchID: oa_cor_id
                }
            });
        }
    }
    //调用刷新当前页面
    function reloadCanbin() {
        window.location.reload();
    }

    function editCabinEvent(F_id, F_Cabin_ID) {
        api.openWin({
            name: 'patient-info-header',
            url: './patient-info-header.html',
            pageParam: {
                F_id: F_id,
                F_Cabin_ID: F_Cabin_ID,
                userName: api.pageParam["userName"]
            }
        });
    }


</script>